<template>
  <basic-import :columns="columns"
                :api="api"
                :templateUrl="templateUrl"
                templateName="DriverImport" />
</template>

<script>
import BasicImport from "./BasicImport";
import { driver } from "@/api/index";
export default {
  name: "DriverImport",
  components: { BasicImport },

  data () {
    return {
      columns: [
        {
          label: "姓名",
          name: "name"
        },
        {
          label: "联系电话",
          name: "mobile"
        },
        {
          label: "驾照日期",
          name: "driverLicenseDate",
          type: "date"
        },
        {
          label: "驾照类型",
          name: "driverLicenseType",
          enumArr: ["A照", "B照", "C照"],
          type: "enum"
        },
        {
          label: "驾驶证号",
          name: "driverLicenseNo"
        },
        {
          label: "性别",
          name: "gender",
          enumArr: ["男", "女"],
          type: "enum"
        },
        {
          label: "出生日期",
          name: "birthday",
          type: "date"
        }
      ],
      api: driver,
      templateUrl: "/excelTemplate/司机信息导入模版.xlsx"
    };
  },
  methods: {}
};
</script>
